//
//  OCSSUserCenterPage.swift
//  OCSSStoreSwift
//
//  Created by MacMiniKangChe on 2018/10/12.
//  Copyright © 2018年 MacMiniKangChe. All rights reserved.
//

import UIKit

class OCSSUserCenterPage: OCSSBaseViewController {

    override func viewDidLoad() {
        super.viewDidLoad()
        navigationController?.navigationBar.tintColor = UIColor.white;
    }
    override func viewWillAppear(_ animated: Bool) {
    navigationController?.navigationBar.setBackgroundImage(UIImage.init(), for: UIBarMetrics.default);
        navigationController?.navigationBar.shadowImage = UIImage.init();
        navigationController?.navigationBar.isTranslucent = true;
    }
    override func viewWillDisappear(_ animated: Bool) {
    navigationController?.navigationBar.setBackgroundImage(nil, for: UIBarMetrics.default);
        navigationController?.navigationBar.shadowImage = nil;
    }
    @IBAction func loginOutButtonEvent(_ sender: UIButton) {
        UserDefaults.standard.removeObject(forKey: kLoginStatus);
        UserDefaults.standard.removeObject(forKey: "Cookie");
        NotificationCenter.default.post(name: NSNotification.Name(rawValue: kReloadRootPage), object: false);
    }
    override func didReceiveMemoryWarning() {
        super.didReceiveMemoryWarning()
        // Dispose of any resources that can be recreated.
    }
    

}
